package com.imagination.applet.infrastructure.utils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;

public class DateTimeUtils {

    private final static DateTimeFormatter FORMATTER = DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT);
    private final static DateTimeFormatter NATIVE_NUMBER_FORMATTER = DateTimeFormatter.ofPattern("yyyyMMddhhmmss");

    public static String nowToPath(){
        return FORMATTER.format(LocalDateTime.now());
    }

    public static String currentString() {
        return NATIVE_NUMBER_FORMATTER.format(LocalDateTime.now());
    }
}
